package com.zbkj.admin.controller.merchant.v2;

import com.zbkj.admin.model.req.MerchantInfoReq;
import com.zbkj.admin.model.vo.MerchantInfoVo;
import com.zbkj.admin.service.MerchantV2Service;
import com.zbkj.dal.base.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api("店铺管理-店铺管理V2")
@RestController
@RequestMapping("/api/admin/merchant/v2/merchant")
public class MerchantV2Controller {

    @Resource
    private MerchantV2Service merchantV2Service;

    @ApiOperation(value = "获取店铺信息")
    @GetMapping(value = "/merchant/info")
    public CommonResult<MerchantInfoVo> merchantInfo(@Validated MerchantInfoReq req) {
        return CommonResult.success(merchantV2Service.merchantInfo(req));
    }

}
